<meta title="修改标语" width="600px" args="flashSaleItem"/>
<form s="valid,form,nda,datac"
      s-data="flashSaleItem"
      id="form" class="form-horizontal"
      method="put"
      action="api/flashSaleItem/slogan/{flashSaleItem.id}">
    <table class="table">
        <tr>
            <td>标语</td>
            <td>
                <input autocomplete="off" type="text" class="form-control input-sm" id="slogan" placeholder="标语" name="slogan" />
            </td>
        </tr>
    </table>
</form>
<script type="text/javascript">
    S.meta.btns = [
        {
            name: "保存",
            style: "btn btn-primary",
            click: function() {
                return $form.submit().done(function(){
                    S.close($slogan.node.val());
                })
            }
        },
        {
            name: "关闭",
            style: "btn btn-default",
            click: function() {
                S.close();
            }
        }
    ]

</script>